<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" id="user_id" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Role')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-role" class="form-control selectpicker" name="row[role]">
                {foreach name="roleList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.role"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="rider_content"></div>
    <div class="form-group">
        <label for="c-real_name" class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-real_name" class="form-control" name="row[real_name]" type="text" value="{$row.real_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname"  class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="required"   class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
   
    {if empty($company_id)}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">公司组织:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-c_id" data-rule="required" data-source="jskmsg/company/index"  class="form-control selectpage" name="row[c_id]" type="text" value="{$row.c_id|htmlentities}">
            </div>
        </div>
    {/if}
    <div class="form-group">
        <label for="c-balance" class="control-label col-xs-12 col-sm-2">{:__('Balance')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-balance" data-rule="" class="form-control" name="row[balance]" type="text" value="{$row.balance|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-ocrnum" class="control-label col-xs-12 col-sm-2">可以次数:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-ocrnum" data-rule="" class="form-control" name="row[ocrnum]" type="text" value="{$row.ocrnum|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-last_time" class="control-label col-xs-12 col-sm-2">{:__('Last_time')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-last_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[last_time]" type="text" value="{$row.last_time}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-last_ip" class="control-label col-xs-12 col-sm-2">{:__('Last_ip')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-last_ip" class="form-control" name="row[last_ip]" type="text" value="{$row.last_ip}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Status 1'), '0'=>__('Status 0')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
